﻿@model com.qt.lib.domain.Entity.Order

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Order</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.OrderDateTime)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.OrderDateTime)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.DeliveryDateTime)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DeliveryDateTime)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ProductPrice)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductPrice)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SalePrice)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SalePrice)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.TotalPrice)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TotalPrice)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Staff)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Staff)
    </div>

    <div class="display-label">
         @*@Html.DisplayNameFor(model => model.Customer.Code)*@
         @Html.LabelFor(model => model.CustomerId, "Customer")
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Customer.FirstName)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
